package com.sync.platform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sync.platform.entity.ServerConfig;

/**
 * Server configuration service interface
 */
public interface ServerConfigService extends IService<ServerConfig> {

    /**
     * Test server connection
     *
     * @param serverConfig Server configuration
     * @return true if connection successful, false otherwise
     */
    boolean testConnection(ServerConfig serverConfig);

    /**
     * Update server status
     *
     * @param id Server ID
     * @param status Server status
     * @return true if update successful, false otherwise
     */
    boolean updateStatus(Long id, Integer status);
    
    /**
     * Count total number of servers
     * 
     * @return count of servers
     */
    int countServers();
}
